// var players=["玩家1","玩家2","玩家3","玩家4","玩家5","玩家6","玩家7","玩家8","玩家9","玩家10"]
// index n. 下标  索引
// for (let index = 1; index < players.length; index+=2){
//     console.log(players[index]);
// }                                                                                                                                                                                                                                    
// console.log("队列尾部的最后一名玩家是" + players[players.length-1]);
// console.log("第三位是"+players[2])
players.push("玩家1");
console.log(players[0]);
players.push("玩家2");
console.log(players[1]);
console.log("当前服务器中有" + players.length + "个玩家");
var players1=players.shift();
var players2=players.shift();
console.log(players1);
console.log(players2);
console.log("当前服务器中有" + players.length + "个玩家")





                                                                                                                                                                                                                                                            